package com.wf.it.common.api.hystrix;

import com.wf.it.common.api.DeptService;
import com.wf.it.common.entity.Dept;
import com.wf.it.common.vo.Result;
import org.springframework.stereotype.Service;

@Service
public class DeptServiceHystrixImpl implements DeptService {
    @Override
    public Result findByNames(String[] names) {
        return new Result(600,null,"网络故障，查询部门未成功，请稍后再试");
    }

    @Override
    public Result findByName(String name) {
        return new Result(600,null,"网络故障，查询部门未成功，请稍后再试");
    }

    @Override
    public Result findAll() {
        return new Result(600,null,"网络故障，查询未成功，请稍后再试");
    }

    @Override
    public Result findById(int id) {
        return new Result(600,null,"网络故障，查询部门未成功，请稍后再试");
    }

    @Override
    public Result add(Dept dept) {
        return new Result(600,null,"网络故障，新增部门未成功，请稍后再试");
    }
}
